/*
 * Copyright (c) 2017 zhangcm. All Rights Reserved.
 */
package com.jnzc.ocr.serv.shop.api;

import com.jnzc.ocr.serv.shop.entity.ShopCountIndex;
import com.jnzc.ocr.serv.shop.entity.ShopCountRevenue;
import com.jnzc.ocr.serv.shop.filter.ShopCountRevenueFilter;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author zhangcm
 * @version 1.0, 2017/10/7
 */
@FeignClient("serv-shop")
@RequestMapping("/shopCountApi")
public interface ShopCountApi {

    @PostMapping("/findRevenue")
    ShopCountRevenue findRevenue(@RequestBody ShopCountRevenueFilter filter);

    @PostMapping("/listRevenue")
    List<ShopCountRevenue> listRevenue(@RequestBody ShopCountRevenueFilter filter);

    @PostMapping("/countIndex")
    ShopCountIndex countIndex(@RequestParam("shopId") Long shopId);
}
